﻿<UserControl x:Class="Sanbox.DashboardView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             MinHeight="450" MinWidth="974"
             Background="Transparent">
    <UserControl.Resources>
        <Style TargetType="Button" x:Key="IsoListButton">
            <Style.Triggers>
                <EventTrigger RoutedEvent="Button.MouseEnter">
                    <BeginStoryboard>
                        <Storyboard Storyboard.TargetProperty="Effect.(DropShadowEffect.Color)">
                            <ColorAnimation Duration="0:0:0.1" To="White"></ColorAnimation>
                        </Storyboard>
                    </BeginStoryboard>
                    <BeginStoryboard>
                        <Storyboard Storyboard.TargetProperty="Effect.(DropShadowEffect.ShadowDepth)">
                            <DoubleAnimation Duration="0:0:0.1" To="1"/>
                        </Storyboard>
                    </BeginStoryboard>
                    <BeginStoryboard>
                        <Storyboard Storyboard.TargetProperty="Effect.(DropShadowEffect.BlurRadius)">
                            <DoubleAnimation Duration="0:0:0.1" To="20"/>
                        </Storyboard>
                    </BeginStoryboard>
                </EventTrigger>
                <EventTrigger RoutedEvent="Button.MouseLeave">
                    <BeginStoryboard>
                        <Storyboard Storyboard.TargetProperty="Effect.(DropShadowEffect.Color)">
                            <ColorAnimation Duration="0:0:0.1" To="Transparent"></ColorAnimation>
                        </Storyboard>
                    </BeginStoryboard>
                    <BeginStoryboard>
                        <Storyboard Storyboard.TargetProperty="Effect.(DropShadowEffect.ShadowDepth)">
                            <DoubleAnimation Duration="0:0:0.1" To="0"/>
                        </Storyboard>
                    </BeginStoryboard>
                    <BeginStoryboard>
                        <Storyboard Storyboard.TargetProperty="Effect.(DropShadowEffect.BlurRadius)">
                            <DoubleAnimation Duration="0:0:0.1" To="0"/>
                        </Storyboard>
                    </BeginStoryboard>
                </EventTrigger>
            </Style.Triggers>
            <Setter Property="Cursor" Value="Hand"/>
            <Setter Property="Effect">
                <Setter.Value>
                    <DropShadowEffect ShadowDepth="0" Color="Transparent" BlurRadius="0" />
                </Setter.Value>
            </Setter>
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="Button">
                        <Border Background="Transparent">
                            <ContentPresenter/>
                        </Border>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>
    </UserControl.Resources>
    <Grid>
        <StackPanel>
            <ItemsControl>
                <Button Style="{StaticResource IsoListButton}">
                    <DockPanel Margin="0,0,0,10">
                        <Image VerticalAlignment="Center" Margin="0,0,10,0" Width="40" Height="40" Source="/Images/Home.png"/>
                        <TextBlock HorizontalAlignment="Left" FontSize="30">Software ISOs</TextBlock>
                        <TextBlock HorizontalAlignment="Right" FontSize="30">25</TextBlock>
                    </DockPanel>
                </Button>
                <Button Style="{StaticResource IsoListButton}">
                    <DockPanel Margin="0,0,0,10">
                        <Image VerticalAlignment="Center" Margin="0,0,10,0" Width="40" Height="40" Source="/Images/Home.png"/>
                        <TextBlock FontSize="30">Movie ISOs</TextBlock>
                        <TextBlock HorizontalAlignment="Right" FontSize="30">112</TextBlock>
                    </DockPanel>
                </Button>
                <Button Style="{StaticResource IsoListButton}">
                    <DockPanel Margin="0,0,0,10">
                        <Image VerticalAlignment="Center" Margin="0,0,10,0" Width="40" Height="40" Source="/Images/Home.png"/>
                        <TextBlock FontSize="30">Television ISOs</TextBlock>
                        <TextBlock HorizontalAlignment="Right" FontSize="30">56</TextBlock>
                    </DockPanel>
                </Button>
                <Button Style="{StaticResource IsoListButton}">
                    <DockPanel Margin="0,0,0,10">
                        <Image VerticalAlignment="Center" Margin="0,0,10,0" Width="40" Height="40" Source="/Images/Home.png"/>
                        <TextBlock FontSize="30">Unknown ISOs</TextBlock>
                        <TextBlock HorizontalAlignment="Right" FontSize="30">258</TextBlock>
                    </DockPanel>
                </Button>
                <Button Style="{StaticResource IsoListButton}">
                    <DockPanel Margin="0,0,0,10">
                        <Image VerticalAlignment="Center" Margin="0,0,10,0" Width="40" Height="40" Source="/Images/Home.png"/>
                        <TextBlock FontSize="30">Deleted ISOs</TextBlock>
                        <TextBlock HorizontalAlignment="Right" FontSize="30">5</TextBlock>
                    </DockPanel>
                </Button>
                <Button Style="{StaticResource IsoListButton}">
                    <DockPanel Margin="0,0,0,10">
                        <Image VerticalAlignment="Center" Margin="0,0,10,0" Width="40" Height="40" Source="/Images/Home.png"/>
                        <TextBlock FontSize="30">Lost ISOs</TextBlock>
                        <TextBlock HorizontalAlignment="Right" FontSize="30">2</TextBlock>
                    </DockPanel>
                </Button>
            </ItemsControl>
                <DockPanel Margin="0,0,0,10">
                    <Border BorderBrush="Black" BorderThickness="0,0,0,2" Width="80" HorizontalAlignment="Right">
                        <TextBlock Margin="0,0,6,0" TextAlignment="Right" FontSize="30">456</TextBlock>
                    </Border>
            </DockPanel>            
        </StackPanel>
        <DockPanel Margin="0,20,0,0" VerticalAlignment="Bottom" HorizontalAlignment="Right" Height="50">
            <Button Margin="5" FontSize="20" Width="150" Background="#FF7373">
                Refresh ISOs
            </Button>
            <Button Margin="5" FontSize="20" Width="150" Background="#FF7373">Manage Folders</Button>
        </DockPanel>
    </Grid>
</UserControl>
